import { NameSpace } from 'utils/index';

const ns = NameSpace('projectSecurity');

export const UPDATE_DATA = ns('UPDATE_DATA');
export const INIT_BRANCH = ns('INIT_BRANCH');
export const UPDATE_PIPELINE_INFO = ns('UPDATE_PIPELINE_INFO');

export function updateData(data) {
  return (dispatch) => {
    dispatch({
      type: UPDATE_DATA,
      data,
    });
  };
}

export function initBranchName() {
  return (dispatch) => {
    dispatch({
      type: INIT_BRANCH,
    });
  };
}
